﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Collections.ObjectModel;

namespace CommunitySystemModel.AdvancedCustomerQuery
{
    [Serializable]
    [DataContract]
    public class Query_CustomerQuery
    {
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        private string _LoginUser;
        [DataMember]
        public string LoginUser
        {
            get { return _LoginUser; }
            set { _LoginUser = value; }
        }

        private DateTime? _CreateDate;
        [DataMember]
        public DateTime? CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }

        private string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        private string _DSC;
        [DataMember]
        public string DSC
        {
            get { return _DSC; }
            set { _DSC = value; }
        }


        private bool? _IsTemplete;
        [DataMember]
        public bool? IsTemplete
        {
            get { return _IsTemplete; }
            set { _IsTemplete = value; }
        }


        private ObservableCollection<Query_ColumnsSelection> _RowSelection = new ObservableCollection<Query_ColumnsSelection>();
        [DataMember]
        public ObservableCollection<Query_ColumnsSelection> RowSelection
        {
            get { return _RowSelection; }
            set { _RowSelection = value; }
        }

        private ObservableCollection<Query_ColumnsSelection> _ColumnSelection = new ObservableCollection<Query_ColumnsSelection>();
        [DataMember]
        public ObservableCollection<Query_ColumnsSelection> ColumnSelection
        {
            get { return _ColumnSelection; }
            set { _ColumnSelection = value; }
        }

        private ObservableCollection<Query_ShowColumn> _ShowColumns = new ObservableCollection<Query_ShowColumn>();
        [DataMember]
        public ObservableCollection<Query_ShowColumn> ShowColumn
        {
            get { return _ShowColumns; }
            set { _ShowColumns = value; }
        }

        private string _QueryType = string.Empty;
        [DataMember]  
        public string QueryType
        {
            get { return _QueryType; }
            set { _QueryType = value; }
        }

        private bool? _ShowType = true;
        [DataMember]
        public bool? ShowType
        {
            get { return _ShowType; }
            set { _ShowType = value; }
        }

        
    }
}
